package com.example.firstservice.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/employee")
public class FirstController {
    @GetMapping(value = "/message")
    public String employeeMessage(@RequestHeader("employee-request-header") final String header){
        System.err.println(header);
        return "Hello JavaInUse Called in First Service";
    }
}
